"""
我的收藏页面
"""
from time import sleep
from selenium.webdriver.common.by import By
from selenium import webdriver
from page.base_page import BasePage
class UserCollection(BasePage):
    # def __init__(self,driver):
    #     self.driver=driver
    #收藏的高质感毛衣加入购物车定位器
    collection_goods_locator=(By.XPATH,"/html/body/div[7]/div[2]/div/div/div/table/tbody/tr[2]/td[3]/a[2]")

    #点击加入购物车
    def addcollectionbuy(self):
        self.driver.find_element(*self.collection_goods_locator).click()